import request from '/@/utils/request';

/**
 * 流量控制接口
 *
 */
export function flowControlApi() {
	return {
		getFlowControle: (itemId) => {
			return request({
				url: '/flowControl/get?item_id='+itemId,
				method: 'get',
			});
		},
		updateFlowControle: (data?: object) => {
			return request({
				url: '/flowControl/update',
				method: 'post',
				data,
			});
		},
	};
}
